import { request } from 'ice';
import {ArticleElement} from '@/api/GlobalInterface';

/**
 * 获取文章列表
 * @returns
 */
export function getArticles(): Promise<
  Array<ArticleElement>
> {
  return request.get('/article/getArticles');
}
/**
 * 删除某个文章
 * @param id 
 * @returns 
 */
export function removeArticle(id:string){
  return request.delete(`/article/removeArticle/${id}`)
}